package it.polimi.digitalstate.webbeans;

import it.polimi.digitalstate.manager.ElectionManagerLocal;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name="periodBean")
@ViewScoped
public class PeriodBean {
	@EJB
	ElectionManagerLocal eml;
	
	public boolean isElectionTime(){
		return eml.isElection();
	}
	public boolean isCandidacyTime(){
		return eml.isCandidacy();
	}
	public String getElectionName(){
		return eml.getElectionNames();
	}
}
